import java.awt.Dimension;
import java.awt.Point;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;


public class SwingTest 
{

	public static void main(String[] args)
	{
		JFrame frame = new JFrame("TestFrame");
		JPanel panel = new JPanel();

		JLabel label1 = new JLabel("Label 1");
		JLabel label2 = new JLabel("Label 2");
		JLabel label3 = new JLabel("Label 3");
		JLabel label4 = new JLabel("Label 4");
		
		frame.setContentPane(panel);
		
		
		panel.add(label1);
		panel.add(label2);
		panel.add(label3);
		panel.add(label4);
		
		frame.setLocation(new Point(100, 100));
		frame.setSize(new Dimension(800, 600));
		frame.setVisible(true);
		
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}
}
